<!DOCTYPE html><html><head><title>HIS系统管理</title><meta charset='utf-8'><link href='https://cdn.maxiang.io/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    



<h1 id="his系统管理">HIS系统管理</h1>

<p></p>

<div><div class="toc"><div class="toc">
<ul>
<li><a href="#his系统管理">HIS系统管理</a><ul>
<li><a href="#1his系统简介">1、his系统简介</a></li>
<li><a href="#2his系统部署框架图">2、his系统部署框架图</a></li>
<li><a href="#3his-业务模块大纲图">3、his 业务模块大纲图</a></li>
<li><a href="#4his-子工程模块图">4、his 子工程模块图</a></li>
<li><a href="#5系统部署环境">5、系统部署环境</a><ul>
<li><a href="#51-nacos-安装部署">5.1 、Nacos 安装部署</a></li>
<li><a href="#52-sentinel简介">5.2 、sentinel简介</a></li>
<li><a href="#53-sentinel-搭建">5.3 、sentinel 搭建</a></li>
<li><a href="#54-dubbo-配置">5.4 、dubbo 配置</a></li>
</ul>
</li>
<li><a href="#6后端技术栈">6、后端技术栈</a></li>
<li><a href="#7前端技术栈">7、前端技术栈</a></li>
<li><a href="#8子系统端口配置列表">8、子系统端口配置列表</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>



<h2 id="1his系统简介">1、his系统简介</h2>

<pre class="prettyprint hljs-dark"><code class="hljs mipsasm"><div class="hljs-line"> HIS英文全称 hospital information system（医院信息系统），系统主要功能按照数据流量、流向及处理过程分为临床诊疗、药品管理、财务管理、患者管理。诊疗活动由各工作站配合完成，并将临床信息进行整理、处理、汇总、统计、分析等。本系统包括以下工作站：门诊医生工作站、药房医生工作站、医技医生工作站、收费员工作站、对帐员工作站、管理员工作站。基于Spring <span class="hljs-keyword">cloud和Spring </span><span class="hljs-keyword">boot </span><span class="hljs-number">2</span>.x 实现。
</div></code></pre>



<h2 id="2his系统部署框架图">2、his系统部署框架图</h2>

<p><img longdesc="./1585125879568.png" alt="Alt text" title="" type="image/png" class="" src=""></p>



<h2 id="3his-业务模块大纲图">3、his 业务模块大纲图</h2>

<p><img longdesc="./1585128867468.png" alt="Alt text" title="" type="image/png" class="" src=""></p>



<h2 id="4his-子工程模块图">4、his 子工程模块图</h2>

<p><img longdesc="./1585131074501.png" alt="Alt text" title="" type="image/png" class="" src=""></p>



<h2 id="5系统部署环境">5、系统部署环境</h2>

<pre class="prettyprint hljs-dark"><code class="hljs css"><div class="hljs-line">   <span class="hljs-selector-tag">Java1</span><span class="hljs-selector-class">.8</span>，<span class="hljs-selector-tag">MySQL5</span><span class="hljs-selector-class">.7</span>，<span class="hljs-selector-tag">Tomcat8</span><span class="hljs-selector-class">.5</span>，<span class="hljs-selector-tag">Redis5</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.5</span>，<span class="hljs-selector-tag">MongoDB4</span><span class="hljs-selector-class">.0</span><span class="hljs-selector-class">.6</span>，<span class="hljs-selector-tag">Nacos</span> 1<span class="hljs-selector-class">.2</span>,<span class="hljs-selector-tag">sentinel</span> 1<span class="hljs-selector-class">.7</span>
</div></code></pre>



<h3 id="51-nacos-安装部署">5.1 、Nacos 安装部署</h3>

<pre class="prettyprint hljs-dark"><code class="hljs stata"><div class="hljs-line">          1. Nacos 安装下载
</div><div class="hljs-line">               https:<span class="hljs-comment">//github.com/alibaba/nacos/releases</span>
</div><div class="hljs-line">               Nacos Server下载地址：
</div><div class="hljs-line">               https:<span class="hljs-comment">//github.com/alibaba/nacos/releases</span>
</div><div class="hljs-line">         2.上传到linux，并解压缩
</div><div class="hljs-line">               上传到 /work，然后解压缩
</div><div class="hljs-line">               <span class="hljs-keyword">cd</span>  /work
</div><div class="hljs-line">            unzip  nacos-server-1.1.3.<span class="hljs-keyword">zip</span> 
</div><div class="hljs-line">         3. 启动服务器
</div><div class="hljs-line">               单机模式运行启动方法：
</div><div class="hljs-line">               /work/nacos/bin/startup.<span class="hljs-keyword">sh</span> -<span class="hljs-keyword">m</span> standalone
</div><div class="hljs-line">               如果在windows服务器，也就启动的命令不同而已
</div><div class="hljs-line">               startup.cmd -<span class="hljs-keyword">m</span> standalone
</div><div class="hljs-line">         4、设置Nacos开机启动
</div><div class="hljs-line">               编辑启动配置文件 /etc/rc.<span class="hljs-keyword">local</span>，加入开机启动项，里面添加内容：
</div><div class="hljs-line">               #调用开启Redis的命令
</div><div class="hljs-line">               /work/nacos/bin/startup.<span class="hljs-keyword">sh</span> -<span class="hljs-keyword">m</span> standalone
</div><div class="hljs-line">         5、访问后台
</div><div class="hljs-line">               默认端口：8848
</div><div class="hljs-line">               Nacos Server的后台访问地址：
</div><div class="hljs-line">               http:<span class="hljs-comment">//192.168.233.128:8848/nacos</span>
</div><div class="hljs-line">               默认账号和密码为：nacos nacos
</div><div class="hljs-line">               最后：会用到的命令
</div><div class="hljs-line">               停止 ： /work/nacos/bin/shutdown.<span class="hljs-keyword">sh</span>  shutdown.cmd 
</div><div class="hljs-line">               启动 ： /work/nacos/bin/startup.<span class="hljs-keyword">sh</span>   -<span class="hljs-keyword">m</span> standalone
</div><div class="hljs-line">         6、Nacos 中文手册
</div><div class="hljs-line">               https:<span class="hljs-comment">//nacos.io/zh-cn/</span>
</div><div class="hljs-line">         7、nacos配置mysql
</div><div class="hljs-line">              nacos支持配置多个数据库，通过 <span class="hljs-keyword">db</span>.num 和 <span class="hljs-keyword">db</span>.url.index的配置来控制。
</div><div class="hljs-line">              nacosz配置mysql数据库只需如下三点即可完成：
</div><div class="hljs-line">              数据库安装可参考 ubuntu下安装mysql5.7
</div><div class="hljs-line">              安装数据库，且确保版本5.6.5+
</div><div class="hljs-line">              使用 <span class="hljs-keyword">conf</span>/nacos-mysql.sql 文件初始化数据库
</div><div class="hljs-line">              修改<span class="hljs-keyword">conf</span>/application.properties文件增加mysql支持
</div><div class="hljs-line">              下面给出只配置一个数据的mysql支持配置：
</div><div class="hljs-line">         # <span class="hljs-keyword">db</span> mysql
</div><div class="hljs-line">           spring.datasource.platform=mysql
</div><div class="hljs-line">           <span class="hljs-keyword">db</span>.num=1
</div><div class="hljs-line">           <span class="hljs-keyword">db</span>.url.0=jdbc:mysql:<span class="hljs-comment">//127.0.0.1:3306/nacos_config?characterEncoding=utf8&amp;connectTimeout=1000&amp;socketTimeout=3000</span>
</div><div class="hljs-line">           &amp;autoReconnect=true
</div><div class="hljs-line">           <span class="hljs-keyword">db</span>.user=root
</div><div class="hljs-line">           <span class="hljs-keyword">db</span>.password=ykdz
</div></code></pre>

<blockquote>
  <p>sentinel 安装部署</p>
</blockquote>



<h3 id="52-sentinel简介">5.2 、sentinel简介</h3>

<pre class="prettyprint hljs-dark"><code class="hljs erlang"><div class="hljs-line">    sentinel是面向分布式服务框架的轻量级流量控制框架,主要以流量为切入点,从流量控制,熔断降级,系统负载保护等多个维度来维护系统的稳定性.
</div></code></pre>



<h3 id="53-sentinel-搭建">5.3 、sentinel 搭建</h3>

<pre class="prettyprint hljs-dark"><code class="hljs dts"><div class="hljs-line"> <span class="hljs-number">1.</span>下载sentinel-Dashboard的源码或者jar：地址：https:<span class="hljs-comment">//github.com/alibaba/Sentinel/releases</span>
</div><div class="hljs-line"> <span class="hljs-number">2.</span>部署Dashboard
</div><div class="hljs-line"> <span class="hljs-number">3.</span>spring boot工程添加如下配置：
</div><div class="hljs-line">   spring :
</div><div class="hljs-line"><span class="hljs-symbol">      application:</span>
</div><div class="hljs-line">        <span class="hljs-meta"># 指定sentinel监控名称</span>
</div><div class="hljs-line"><span class="hljs-symbol">        name:</span> his-outpatient-provider
</div><div class="hljs-line">        <span class="hljs-meta"># Springboot 2.1 X 以上版本使用 </span>
</div><div class="hljs-line"><span class="hljs-symbol">      main:</span>
</div><div class="hljs-line">        allow-bean-definition-overriding: true
</div><div class="hljs-line">      cloud :
</div><div class="hljs-line"><span class="hljs-symbol">        sentinel:</span>
</div><div class="hljs-line"><span class="hljs-symbol">          transport:</span>
</div><div class="hljs-line">            <span class="hljs-meta"># 指定sentinel控制台地址</span>
</div><div class="hljs-line"><span class="hljs-symbol">            dashboard:</span> <span class="hljs-number">127.0</span><span class="hljs-number">.0</span><span class="hljs-number">.1</span>:<span class="hljs-number">8080</span>
</div><div class="hljs-line">            <span class="hljs-meta"># 指定和控制台通信的端口哦，默认值8719</span>
</div><div class="hljs-line">            <span class="hljs-meta"># 若不配置，会自动扫猫从8719开始扫猫，依次+1，知道值找到未被占用的端口</span>
</div><div class="hljs-line"><span class="hljs-symbol">            port:</span> <span class="hljs-number">8719</span>
</div><div class="hljs-line">            <span class="hljs-meta"># sentinel 和 Nacos 集成 配置</span>
</div><div class="hljs-line"><span class="hljs-symbol">          datasource:</span>
</div><div class="hljs-line"><span class="hljs-symbol">            na:</span>
</div><div class="hljs-line"><span class="hljs-symbol">              nacos:</span>
</div><div class="hljs-line">                <span class="hljs-meta"># Nacos 命令空间ID</span>
</div><div class="hljs-line"><span class="hljs-symbol">                namespace:</span> <span class="hljs-number">003</span>d8454<span class="hljs-number">-68</span>fe<span class="hljs-number">-41</span>cd-b41e<span class="hljs-number">-7135</span>a0f708d6
</div><div class="hljs-line">                <span class="hljs-meta"># Nacos 服务地址</span>
</div><div class="hljs-line">                server-addr: <span class="hljs-number">61.150</span><span class="hljs-number">.87</span><span class="hljs-number">.152</span>:<span class="hljs-number">7702</span>
</div><div class="hljs-line">                <span class="hljs-meta"># Nacos 分组</span>
</div><div class="hljs-line"><span class="hljs-symbol">                groupId:</span> SENTINEL_GROUP
</div><div class="hljs-line">                <span class="hljs-meta"># Nacos 配置id</span>
</div><div class="hljs-line"><span class="hljs-symbol">                dataId:</span> his-sentinel.yml
</div><div class="hljs-line">                rule-type: flow
</div><div class="hljs-line"> <span class="hljs-number">4</span>：pom文件引入jar
</div><div class="hljs-line">            <span class="hljs-params">&lt;!-- sentinel --&gt;</span>
</div><div class="hljs-line">            <span class="hljs-params">&lt;dependency&gt;</span>
</div><div class="hljs-line">                <span class="hljs-params">&lt;groupId&gt;</span>com.alibaba.cloud<span class="hljs-params">&lt;/groupId&gt;</span>
</div><div class="hljs-line">                <span class="hljs-params">&lt;artifactId&gt;</span>spring-cloud-starter-alibaba-sentinel<span class="hljs-params">&lt;/artifactId&gt;</span>
</div><div class="hljs-line">                <span class="hljs-params">&lt;version&gt;</span><span class="hljs-number">2.1</span><span class="hljs-number">.1</span>.RELEASE<span class="hljs-params">&lt;/version&gt;</span>
</div><div class="hljs-line">            <span class="hljs-params">&lt;/dependency&gt;</span>
</div></code></pre>



<h3 id="54-dubbo-配置">5.4 、dubbo 配置</h3>

<pre class="prettyprint hljs-dark"><code class="hljs yaml"><div class="hljs-line"><span class="hljs-comment"># dubbo 配置如下 ：</span>
</div><div class="hljs-line"><span class="hljs-attr">    dubbo:</span>
</div><div class="hljs-line"><span class="hljs-attr">      application:</span>
</div><div class="hljs-line"><span class="hljs-attr">        name:</span> <span class="hljs-string">his-outpatient-provider</span>
</div><div class="hljs-line"><span class="hljs-attr">        qos-enable:</span> <span class="hljs-string">false</span>
</div><div class="hljs-line"><span class="hljs-attr">      consumer:</span>
</div><div class="hljs-line"><span class="hljs-attr">        check:</span> <span class="hljs-string">false</span>
</div><div class="hljs-line"><span class="hljs-attr">      protocol:</span>
</div><div class="hljs-line">        <span class="hljs-comment"># 使用dubbo协议通信</span>
</div><div class="hljs-line"><span class="hljs-attr">        name:</span> <span class="hljs-string">dubbo</span>
</div><div class="hljs-line">        <span class="hljs-comment"># dubbo 协议端口(-1表示自增端口,从20880开始)</span>
</div><div class="hljs-line"><span class="hljs-attr">        port:</span> <span class="hljs-bullet">-1</span>
</div><div class="hljs-line">      <span class="hljs-comment"># 挂载到 Nacos 注册中心</span>
</div><div class="hljs-line"><span class="hljs-attr">      registry:</span>
</div><div class="hljs-line"><span class="hljs-attr">        address:</span> <span class="hljs-attr">nacos://61.150.87.152:7702</span>
</div><div class="hljs-line"><span class="hljs-attr">      scan:</span>
</div><div class="hljs-line">        <span class="hljs-comment"># 指定 Dubbo 服务实现类的扫描基准包</span>
</div><div class="hljs-line"><span class="hljs-attr">        base-packages:</span> <span class="hljs-string">com.ykdz.his.outpatient.service</span>
</div></code></pre>

</div></body></html>